package com.mvp.shq.washer.ui.shop.shopCollection;

import com.mvp.shq.washer.entity.result.BaseResult;
import com.mvp.shq.washer.entity.shop.Product;
import com.mvp.shq.washer.entity.shop.result.CollectResult;
import com.mvp.shq.washer.http.RxSchedulers;
import com.mvp.shq.washer.http.ShopApi;

import java.util.List;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2017/10/11.
 */

public class Model implements ShopCollectionConstract.Model {
    @Override
    public Observable<BaseResult<CollectResult>> getCollectList(String token, String userId, int pageNo, int pageSize) {
        return ShopApi.getInstance().service
                .getCollectList(token,userId,pageNo,pageSize)
                .compose(RxSchedulers.io_main());
    }
}
